package com.guage.zookeeper;

import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.SerializableSerializer;
/**
 * 获取节点
 * @author john
 *
 */
public class GetData {
	public static void main(String[] args) {
        ZkClient zc = new ZkClient("192.168.222.135:2181",10000,10000,new SerializableSerializer());
        System.out.println("conneted ok!");
        
        User stat = new User();
        User u = zc.readData("/jike5");
        System.out.println(u.toString());
        System.out.println(stat);
        
    }
}
